package yz.cp.back.s.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import yz.cp.back.base.AuditEntity;
import yz.cp.back.common.constant.CommonConstant;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser extends AuditEntity {

    private String address;

    private String avatar = CommonConstant.USER_DEFAULT_AVATAR;

    private String description;

    private String email;

    private String mobile;

    private String nickName;

    private String password;

    private Integer sex;

    private Integer status = CommonConstant.USER_STATUS_NORMAL;

    private Integer type = CommonConstant.USER_TYPE_NORMAL;

    private String username;

    private String departmentId;

    private String street;

    private String passStrength;

    @TableField(exist = false)
    private String departmentTitle;

    @TableField(exist = false)
    private List<SysRole> roles;

    @TableField(exist = false)
    private List<SysPermission> permissions;

}
